# import config
#
#
# for i in dir(config):
#     if not i.startswith("__") and i.isupper():
#         print(i)
#         print(type(getattr(config,i)))
from decimal import Decimal

s = "2018-09-26 19:44:59"
from datetime import datetime

s = datetime.strptime(s,"%Y-%m-%d %H:%M:%S")
# print(s)

import time

# # 时间戳转换时间
# raiseStartTime=1537962333000
# timeArray = time.localtime(raiseStartTime/1000)
# otherStyleTime = time.strftime("%Y-%m-%d %H:%M:%S", timeArray)
# print(otherStyleTime)

# s = Decimal(0.0500)+Decimal(0.0200)
# print(s)

s = "spno.a"
a = s.index(".")
print(s[:a])